package com.msun.dao;

import com.github.pagehelper.Page;
import com.msun.pojo.Address;

import java.util.List;
import java.util.Map;

public interface AddressDao {
    public Page<Address> selectByCondition(String queryString);

    public void add(Address address);

    public Address findById(Integer id);

    public void edit(Address address);

    public void deleteById(Integer id);

    public void setOrderAndAddress(Map map);

    public List<Integer> findAddressesByOrderId(Integer id);

    public List<Integer> findOrderIdByAddressId(Integer id);

    public Integer findCountByAddressId(Integer id);
    public String findNameByOrderId(Integer orderId);

    public List<Address> findAll();

    public Address findByCoordinates(String coordinates);


}
